﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 蒙牛物料加3个字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Articlebarcode",
                table: "TMaterials",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Shortname",
                table: "TMaterials",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "Tonnagefactor",
                table: "TMaterials",
                type: "decimal(18,2)",
                nullable: false,
                defaultValue: 0m);          
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Articlebarcode",
                table: "TMaterials");

            migrationBuilder.DropColumn(
                name: "Shortname",
                table: "TMaterials");

            migrationBuilder.DropColumn(
                name: "Tonnagefactor",
                table: "TMaterials");        
        }
    }
}
